package com.winsdom.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.winsdom.dto.RoleManageDto;
import com.winsdom.entity.SysFatherPermission;

import java.util.List;

public interface SysFatherPermissionMapper extends BaseMapper<SysFatherPermission> {
    void deleteRole(Long roleId);

    Long selectRoleId(String name);

    void updateByRolename(Long id, String name);

    void insertRolePermission(Long id, Long permissionId);

    List<RoleManageDto> selectRolePermission(Long id);

    String selectRoleName(Long roleId,String roleName);

    Long selectRoleById(Long id);
}
